import Mock from 'mockjs'
import homeApi from './mockData/home.js'
import userApi from './mockData/user.js'
import permissionApi from './mockData/permission.js'
Mock.mock('/home/getData',homeApi.getHomeData)

//本地获取user的数据
Mock.mock(/user\/getUser/,'get',userApi.getUserList)
//创建数据的接口
Mock.mock(/user\/add/,'post',userApi.createUser)
//编辑接口
Mock.mock(/user\/edit/,'post',userApi.updateUser)
//删除接口
Mock.mock(/user\/delete/,'get',userApi.deleteUser)
//登陆鉴权接口
Mock.mock(/permission\/getMenu/,'post',permissionApi.getMenu)